/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sda.levelup.rating;

import java.util.Comparator;

/**
 *
 * @author Дима
 */
public class RatingComparator implements Comparator<User>
{
    public int compare(User u1, User u2){
        return u1.getRating()-u2.getRating();
    }
}
